package com.dianpingmedia.simulate.model;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

public class IFlySyncRelationEntity {

    public static class Request{
        @NotBlank(message = "ssp_id can't be empty")
        private String ssp_id;
        @NotBlank(message = "time can't be empty")
        private String time;
        @NotBlank(message = "token can't be empty")
        private String token;
        @NotBlank(message = "sign can't be empty")
        private String sign;

        @NotNull(message = "is_publish can't be empty")
        private Integer is_publish;

        @NotEmpty(message = "medias can't be empty")
        private List<Rel> rels;

        public static class Rel{
            private String media_id;
            private String adunit_id;
            private Integer is_del;

            public String getMedia_id() {
                return media_id;
            }

            public void setMedia_id(String media_id) {
                this.media_id = media_id;
            }

            public String getAdunit_id() {
                return adunit_id;
            }

            public void setAdunit_id(String adunit_id) {
                this.adunit_id = adunit_id;
            }

            public Integer getIs_del() {
                return is_del;
            }

            public void setIs_del(Integer is_del) {
                this.is_del = is_del;
            }
        }

        public String getSsp_id() {
            return ssp_id;
        }

        public void setSsp_id(String ssp_id) {
            this.ssp_id = ssp_id;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public Integer getIs_publish() {
            return is_publish;
        }

        public void setIs_publish(Integer is_publish) {
            this.is_publish = is_publish;
        }

        public List<Rel> getRels() {
            return rels;
        }

        public void setRels(List<Rel> rels) {
            this.rels = rels;
        }
    }

    public static class Response{
        private Integer return_code;
        private Object message;

        public Integer getReturn_code() {
            return return_code;
        }

        public void setReturn_code(Integer return_code) {
            this.return_code = return_code;
        }

        public Object getMessage() {
            return message;
        }

        public void setMessage(Object message) {
            this.message = message;
        }
    }
}
